package cn.leizp.springboot.auth.frontweb.controller;

import org.springframework.web.bind.annotation.*;
import cn.leizp.springboot.auth.MyToken;

@RestController
@RequestMapping("/api")
public class StrController {
	
    @CrossOrigin
    @GetMapping("/test")
    public String test() {
        return MyToken.generateToken("admin");
    }
}
